<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
		<title>分类筛选</title>
		<!-- Bootstrap CSS -->
		<link rel="stylesheet" href="__INDEX__/css/bootstrap.min.css">

		<!-- Fontawesome CSS --> 
		<link rel="stylesheet" href="__INDEX__/plugins/fontawesome/css/fontawesome.min.css">
		<link rel="stylesheet" href="__INDEX__/plugins/fontawesome/css/all.min.css">

		<!-- calendar CSS -->
		<link rel="stylesheet" href="__INDEX__/plugins/simple-calendar/simple-calendar.css">

		<!-- Feathericon CSS -->
		<link rel="stylesheet" href="__INDEX__/css/feather.css">

		<!-- Main CSS -->
		<link rel="stylesheet" href="__INDEX__/css/style.css">
	</head>
	<body>
	<!-- Main Wrapper -->
	<div class="main-wrapper">
		<!-- Header -->
		{include file="Include/top"}
		<!-- /Header -->

		<!-- Sidebar -->
		{include file="Include/left"}
		<!-- /Sidebar -->

		<!-- Page Wrapper -->
            <div class="page-wrapper">
                <div class="content container-fluid">
					<div class="row">
						<div class="col-lg-12">
							<div class="card">
								<div class="card-header">
									<h5 class="card-title">条件搜索</h5>
								</div>
								<div class="card-body">
									<form action="/admin.php/Select/form1" method="get" autocomplete="off">
										<div class="form-group row">
											<label class="col-form-label col-md-2">分类搜索</label>
											<div class="col-md-10">
												<select style="display: inline; width: 8em;" class="form-control" id="befor" name="befor">
													<option value="1" {if condition="$val eq 1"}selected {/if} >导游</option>
													<option value="2" {if condition="$val eq 2"}selected {/if} >车牌号</option>
													<option value="3" {if condition="$val eq 3"}selected {/if} >游客</option>
												</select>
												<input style="display: inline; width:50em;" type="text" name="name" placeholder="请输入搜索的关键词" class="form-control">
												<button style="display: inline;margin-left:10px; height: 48px;" type="submit" class="btn btn-primary">搜索</button>
											</div>
										</div>
									</form>
								</div>

								<div class="card-body">
									{if condition="$val eq 3"}
									<div class="table-responsive">
										<table class="table mb-0">
											<thead>
											<tr>
												<th>游客姓名</th>
												<th>导游姓名</th>
												<th>导游手机</th>
												<th>出团日期</th>
												<th>司机手机</th>
												<th>行程路线</th>
												<th>车牌号</th>
											</tr>
											</thead>
											<tbody>
											{volist name="list" id="vv"}
											<tr>
												<td>{$vv.ykname}</td>
												<td>{$vv.dyname}</td>
												<td>{$vv.dyiphone}</td>
												<td>{$vv.datetime|date="Y-m-d"}</td>
												<td>{$vv.sjiphone}</td>
												<td>{$vv.travelroute}</td>
												<td>{$vv.carNum}</td>
											</tr>
											{/volist}
											</tbody>
										</table>
									</div>
									{elseif condition="$val eq 1"}
									<div class="table-responsive">
										<table class="table mb-0">
											<thead>
											<tr>
												<th>导游姓名</th>
												<th>游客姓名</th>
												<th>年龄</th>
												<th>性别</th>
												<th>电话</th>
												<th>签订时间</th>
											</tr>
											</thead>
											<tbody>
											{volist name="list" id="vv"}
											<tr>
												<td>{$vv.dyname}</td>
												<td>{$vv.ykname}</td>
												<td>{$vv.age}</td>
												<td>{$vv.sex}</td>
												<td>{$vv.iphone}</td>
												<td>{$vv.htaddtime|date="Y-m-d H-i-s"}</td>
											</tr>
											{/volist}
											</tbody>
										</table>
									</div>
									{else}
									<div class="table-responsive">
										<table class="table mb-0">
											<thead>
											<tr>
												<th>车牌号</th>
												<th>游客姓名</th>
												<th>年龄</th>
												<th>性别</th>
												<th>电话</th>
												<th>签订时间</th>

											</tr>
											</thead>
											<tbody>
											{volist name="list" id="vv"}
											<tr>
												<td>{$vv.carNum}</td>
												<td>{$vv.ykname}</td>
												<td>{$vv.age}</td>
												<td>{$vv.sex}</td>
												<td>{$vv.iphone}</td>
												<td>{$vv.htaddtime|date="Y-m-d H-i-s"}</td>
											</tr>
											{/volist}
											</tbody>
										</table>
									</div>
									{/if}
									<div class="row" style="margin-left: 85%;height: 45px;width:100%;">
										<div class="btn btn-default col-xs-12 col-sm-6 col-md-8">
											{$page|raw}
										</div>
									</div>

								</div>
							</div>
						</div>
					</div>
				
				</div>			
			</div>

        </div>
		<!-- /Main Wrapper -->
		
		<!-- jQuery -->
		<script src="__INDEX__/js/jquery-3.6.0.min.js"></script>

		<!-- Bootstrap Core JS -->
		<script src="__INDEX__/js/bootstrap.bundle.min.js"></script>
		
		<!-- Slimscroll JS -->
		<script src="__INDEX__/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		
		<!-- Custom JS -->
		<script src="__INDEX__/js/script.js"></script>

	</body>
</html>
